<template>
	<!-- title部分 -->
	<view class="title">
		<view class="title_leftbox" @click="goToWodezhanji">
			<image class="title_leftbox_image_fanhui" src="../../static/返回.png"></image>
		</view>
		<view class="title_middlebox">
			<view class="title_middlebox_text">推荐定制</view>
		</view>
		<view class="title_rightbox">
			<image class="title_rightbox_img" src="../../static/wenhao.png"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goToWodezhanji() {
				// 使用uni-app的navigateTo方法跳转
				uni.navigateTo({
					url: '/pages/wodezhanji/wodezhanji'
				});
			},
		}
	}
</script>

<style>
/* 以下是title部分样式 */
	.title {
		background-color: rgb(226, 50, 52);
		display: flex;
		align-items: center;
		justify-content: space-between;
		/* 使左右盒子分别位于两侧 */
		padding: 2%;
	}

	.title_leftbox {
		display: flex;
		align-items: center;
		justify-content: center;
		/* 使图标居中 */
	}

	.title_leftbox_image_fanhui {
		width: 20px;
		height: 25px;
	}

	.title_middlebox {
		flex-grow: 1;
		/* 使中间盒子占据剩余空间 */
		display: flex;
		align-items: center;
		justify-content: center;
		/* 使文本居中 */
	}

	.title_middlebox_text {
		font-size: 20px;
		color: white;
		font-weight: 500;
	}

	.title_rightbox {
		display: flex;
		align-items: center;
		justify-content: center;
		/* 使文本居中 */
	}

	.title_rightbox_img {
		width: 22px;
		display: block;
		height: 22px;
	}

</style>
